<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Sistema da livraria ACME!</title>
    </h:head>
    <h:body>
        <p:messages id="messagesPanel"/>
        

        <p:panel header="Login" style="text-align: center; width: 420px; margin: 0 auto;" >
            <h:graphicImage  value="LOGO.JPG" />
            <h:form>
                Usuario(email): <p:inputText value="#{loginMB.user}" required="true" requiredMessage="Usuario é obrigatorio."></p:inputText><br/>
                Senha: <p:inputText value="#{loginMB.psswd}" required="true" requiredMessage="Senha é obrigatorio."></p:inputText><br/>
                Administrador: <h:selectBooleanCheckbox value="#{loginMB.admin}"/><br/>
                <p:commandButton action="#{loginMB.login()}" value="Logar" update="messagesPanel" ajax="false"></p:commandButton><br/>
                <h:commandLink value="Cliente novo clique aqui" action="novoCliente.xhtml" immediate="true"/><br/>
                <h:commandLink value="Administrador novo clique aqui" action="novoAdministrador.xhtml" immediate="true"/>                            
            </h:form>            

        </p:panel>
    </h:body>
</html>


